package cn.arnold.niuke;

public class Test {
    public static void main(String[] args) {
       /* Teacher t = new
        Teacher();
        Student s = new Student();
        if (t instanceof Person){
            s=(Student)t;
        }*/
       /*try {
           int[] arr = new int[3];
           arr[4]=1;

       }catch (ArrayIndexOutOfBoundsException e){
           System.out.println(e);
       }
       catch (Exception e){
           System.out.println(e);
       }*/
       Teacher t= new Teacher();

    }
}

class Person {
    private int age;
    private String name;
}

class Teacher extends Person {

}

class Student extends Person {

}
